Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 8289bea

Browse files
authored
app: ProgressBar & SeekBar rework (#98)
please notice that expand paint fix is not there anymore+vertical seekbars are buggy Signed-off-by: BlackMesa123 <giangrecosalvo9@gmail.com>
1 parent 65f2fa8 commit 8289bea

File tree

148 files changed

+4503
-4635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+4503
-4635
lines changed

app/src/main/java/de/dlyt/yanndroid/oneuiexample/tabs/IconsTab.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import androidx.activity.OnBackPressedCallback;
1818
import androidx.annotation.NonNull;
1919
import androidx.annotation.Nullable;
20-
import androidx.appcompat.util.SeslRoundedCorner;
20+
import de.dlyt.yanndroid.oneui.sesl.utils.SeslRoundedCorner;
2121
import androidx.fragment.app.Fragment;
2222

2323
import java.util.ArrayList;

app/src/main/java/de/dlyt/yanndroid/oneuiexample/tabs/ViewsTab.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import androidx.annotation.NonNull;
1212
import androidx.annotation.Nullable;
13-
import androidx.appcompat.app.AppCompatActivity;
1413
import androidx.appcompat.widget.SeslSpinner;
1514
import androidx.fragment.app.Fragment;
1615

@@ -19,20 +18,21 @@
1918

2019
import de.dlyt.yanndroid.oneui.widget.SeekBar;
2120
import de.dlyt.yanndroid.oneui.widget.SwitchBar;
21+
import de.dlyt.yanndroid.oneuiexample.MainActivity;
2222
import de.dlyt.yanndroid.oneuiexample.R;
2323

2424
public class ViewsTab extends Fragment {
2525

2626
private View mRootView;
27-
private AppCompatActivity mActivity;
27+
private MainActivity mActivity;
2828

2929
public ViewsTab() {
3030
}
3131

3232
@Override
3333
public void onAttach(Context context) {
3434
super.onAttach(context);
35-
mActivity = (AppCompatActivity) getActivity();
35+
mActivity = (MainActivity) getActivity();
3636
}
3737

3838
@Override

app/src/main/res/layout/fragment_views_tab.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@
3434
android:orientation="vertical">
3535

3636

37-
<ProgressBar
37+
<de.dlyt.yanndroid.oneui.widget.ProgressBar
38+
android:id="@+id/progressbar"
3839
style="?android:progressBarStyleHorizontal"
3940
android:layout_width="match_parent"
4041
android:layout_height="wrap_content"
4142
android:indeterminate="true" />
4243

43-
<ProgressBar
44+
<de.dlyt.yanndroid.oneui.widget.ProgressBar
4445
style="@style/ProgressBarStyle.Horizontal.Large"
4546
android:indeterminate="true" />
4647

0 commit comments

Comments
 (0)