竖着的seekbar
16lz
2021-01-24
在项目里有用到竖着的seekbar,在android里没有对应的组件,需要自己实现
使用时,在对应的layout里声明下
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" > <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true" android:layout_alignParentTop="true" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" > <android.opengl.GLSurfaceView android:id="@+id/view3d" android:layout_width="fill_parent" android:layout_height="fill_parent"/> </FrameLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_gravity="right" android:layout_alignParentLeft="true" ><anjuliye.android.app.view.VerticalSeekBarandroid:id="@+id/seek" android:progressDrawable="@layout/progress_vertical"android:thumb="@layout/seek_thumb" android:layout_height="fill_parent"android:layout_width="26dip" /> </LinearLayout></RelativeLayout>
效果如图
更多相关文章
- Android(安卓)的永久登陆 与注销登陆
- 【Android】FragmentTabHost实现问题记录
- android 垂直方向上下滑动阻尼效果
- Android实现图片倒影效果
- android动画效果_图片闪烁
- Android实现点击按钮 文本框值加1
- 【Android(安卓)应用开发】 自定义 圆形进度条 组件
- Android实现Flip翻转动画效果
- Android应用程序组件Content Provider应用实例(4)