Fixing dialog padding for seekbar dialogs

This commit is contained in:
anthony restaino 2017-05-27 12:07:43 -04:00
parent a5119aff13
commit 75bfe8ce64
3 changed files with 7 additions and 6 deletions

View File

@ -290,7 +290,7 @@ public class ReadingActivity extends AppCompatActivity {
break;
case R.id.text_size_item:
View view = LayoutInflater.from(this).inflate(R.layout.seek_layout, null);
View view = LayoutInflater.from(this).inflate(R.layout.dialog_seek_bar, null);
final SeekBar bar = (SeekBar) view.findViewById(R.id.text_size_seekbar);
bar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {

View File

@ -151,7 +151,7 @@ public class DisplaySettingsFragment extends LightningPreferenceFragment impleme
private void textSizePicker() {
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
LayoutInflater inflater = getActivity().getLayoutInflater();
LinearLayout view = (LinearLayout) inflater.inflate(R.layout.seek_layout, null);
LinearLayout view = (LinearLayout) inflater.inflate(R.layout.dialog_seek_bar, null);
final SeekBar bar = (SeekBar) view.findViewById(R.id.text_size_seekbar);
final TextView sample = new TextView(getActivity());
sample.setText(R.string.untitled);

View File

@ -1,13 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
android:orientation="vertical"
android:padding="@dimen/dialog_padding">
<SeekBar
android:id="@+id/text_size_seekbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp" />
android:layout_height="wrap_content"/>
</LinearLayout>