android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
-
+<LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+
<EditText
android:id="@+id/password"
style="@android:style/TextAppearance.Large"
android:text="@android:string/ok" />
</LinearLayout>
+</LinearLayout>
</LinearLayout>
\ No newline at end of file
<item name="android:background">?android:attr/selectableItemBackground</item>
<item name="android:textColor">?attr/bottomButtonBarText</item>
</style>
+
+ <style name="PinButton" parent="PinButtonBase">
+ <item name="android:background">?android:attr/selectableItemBackground</item>
+ </style>
</resources>
\ No newline at end of file
<color name="background_dark">#1F1F1F</color>
- <style name="PinButton" parent="@android:style/TextAppearance.Large">
+ <style name="PinButtonBase" parent="@android:style/TextAppearance.Large">
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">64dp</item>
<item name="android:layout_weight">1</item>
- <item name="android:background">?android:attr/selectableItemBackground</item>
</style>
+ <style name="PinButton" parent="PinButtonBase">
+ </style>
+
<style name="SuperuserDark" parent="@style/AppDarkTheme">
<item name="bottomButtonBar">@null</item>
<item name="bottomButtonBarText">?android:attr/textColorPrimary</item>
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
+import android.view.ViewGroup;
+import android.view.ViewGroup.LayoutParams;
import android.widget.Toast;
import com.koushikdutta.superuser.util.Settings;
super.onCancel();
d.dismiss();
};
- }.getView());
+ }.getView(), new ViewGroup.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
+ d.getWindow().setLayout(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
d.show();
}
d.dismiss();
};
}.getView());
+ d.getWindow().setLayout(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
d.show();
}
super.onCancel();
d.dismiss();
};
- }.getView());
+ }.getView(), new ViewGroup.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
+ d.getWindow().setLayout(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
d.show();
}
else {