- 浏览: 5777521 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (890)
- WindowsPhone (0)
- android (88)
- android快速迭代 (17)
- android基础 (34)
- android进阶 (172)
- android高级 (0)
- android拾遗 (85)
- android动画&效果 (68)
- Material Design (13)
- LUA (5)
- j2me (32)
- jQuery (39)
- spring (26)
- hibernate (20)
- struts (26)
- tomcat (9)
- javascript+css+html (62)
- jsp+servlet+javabean (14)
- java (37)
- velocity+FCKeditor (13)
- linux+批处理 (9)
- mysql (19)
- MyEclipse (9)
- ajax (7)
- wap (8)
- j2ee+apache (24)
- 其他 (13)
- phonegap (35)
最新评论
-
Memories_NC:
本地lua脚本终于执行成功了,虽然不是通过redis
java中调用lua脚本语言1 -
ZHOU452840622:
大神://处理返回的接收状态 这个好像没有监听到 遇 ...
android 发送短信的两种方式 -
PXY:
拦截部分地址,怎么写的for(int i=0;i<lis ...
判断是否登录的拦截器SessionFilter -
maotou1988:
Android控件之带清空按钮(功能)的AutoComplet ...
自定义AutoCompleteTextView -
yangmaolinpl:
希望有表例子更好。。。,不过也看明白了。
浅谈onInterceptTouchEvent、onTouchEvent与onTouch
在上一个版本基础上添加两个Activity: EffectsActivity&TabLayoutActivity
EffectsActivity测试了一种效果;
TabLayoutActivity中使用的控件:
android.support.design.widget.TabLayout
android.support.v4.widget.NestedScrollView
android.support.design.widget.TextInputLayout
EffectsActivity测试了一种效果;
TabLayoutActivity中使用的控件:
android.support.design.widget.TabLayout
android.support.v4.widget.NestedScrollView
android.support.design.widget.TextInputLayout
import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.content.Context; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.view.ViewTreeObserver.OnGlobalLayoutListener; import android.widget.Button; import android.widget.LinearLayout; public class EffectsActivity extends AppCompatActivity implements View.OnClickListener{ private Context context; private LinearLayout main_view; private LinearLayout pop_view; private int main_view_height; private int pop_view_height; private Button btn_show; private Button btn_hide; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_test); context=this; main_view = (LinearLayout)findViewById(R.id.main_view); pop_view = (LinearLayout)findViewById(R.id.pop_view); btn_show = (Button)findViewById(R.id.btn_show); btn_hide = (Button)findViewById(R.id.btn_hide); btn_show.setOnClickListener(this); btn_hide.setOnClickListener(this); main_view.getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() { @Override public void onGlobalLayout() { main_view_height = main_view.getHeight(); main_view.getViewTreeObserver().removeGlobalOnLayoutListener(this); } }); pop_view.getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() { @Override public void onGlobalLayout() { pop_view_height = pop_view.getHeight(); pop_view.getViewTreeObserver().removeGlobalOnLayoutListener(this); } }); } @Override public void onClick(View v) { // TODO Auto-generated method stub switch (v.getId()) { case R.id.btn_show: show(); break; case R.id.btn_hide: hide(); break; default: break; } } private void show(){ ObjectAnimator fViewScaleXAnim=ObjectAnimator.ofFloat(main_view,"scaleX",1.0f,0.8f); fViewScaleXAnim.setDuration(350); ObjectAnimator fViewScaleYAnim=ObjectAnimator.ofFloat(main_view,"scaleY",1.0f,0.8f); fViewScaleYAnim.setDuration(350); ObjectAnimator fViewAlphaAnim=ObjectAnimator.ofFloat(main_view,"alpha",1.0f,0.5f); fViewAlphaAnim.setDuration(350); ObjectAnimator fViewRotationXAnim = ObjectAnimator.ofFloat(main_view, "rotationX", 0f, 10f); fViewRotationXAnim.setDuration(200); ObjectAnimator fViewResumeAnim = ObjectAnimator.ofFloat(main_view, "rotationX", 10f, 0f); fViewResumeAnim.setDuration(150); fViewResumeAnim.setStartDelay(200); ObjectAnimator fViewTransYAnim=ObjectAnimator.ofFloat(main_view,"translationY",0,-0.1f* main_view_height); fViewTransYAnim.setDuration(350); ObjectAnimator sViewTransYAnim=ObjectAnimator.ofFloat(pop_view,"translationY",pop_view_height,0); sViewTransYAnim.setDuration(350); sViewTransYAnim.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationStart(Animator animation) { super.onAnimationStart(animation); pop_view.setVisibility(View.VISIBLE); btn_show.setEnabled(!pop_view.isShown()); } }); AnimatorSet showAnim=new AnimatorSet(); showAnim.playTogether(fViewScaleXAnim,fViewRotationXAnim,fViewResumeAnim,fViewTransYAnim,fViewAlphaAnim,fViewScaleYAnim,sViewTransYAnim); showAnim.start(); } private void hide(){ ObjectAnimator fViewScaleXAnim=ObjectAnimator.ofFloat(main_view,"scaleX",0.8f,1.0f); fViewScaleXAnim.setDuration(350); ObjectAnimator fViewScaleYAnim=ObjectAnimator.ofFloat(main_view,"scaleY",0.8f,1.0f); fViewScaleYAnim.setDuration(350); ObjectAnimator fViewAlphaAnim=ObjectAnimator.ofFloat(main_view,"alpha",0.5f,1.0f); fViewAlphaAnim.setDuration(350); ObjectAnimator fViewRotationXAnim = ObjectAnimator.ofFloat(main_view, "rotationX", 0f, 10f); fViewRotationXAnim.setDuration(200); ObjectAnimator fViewResumeAnim = ObjectAnimator.ofFloat(main_view, "rotationX", 10f, 0f); fViewResumeAnim.setDuration(150); fViewResumeAnim.setStartDelay(200); ObjectAnimator fViewTransYAnim=ObjectAnimator.ofFloat(main_view,"translationY",-0.1f* main_view_height,0); fViewTransYAnim.setDuration(350); ObjectAnimator sViewTransYAnim=ObjectAnimator.ofFloat(pop_view,"translationY",0,pop_view_height); sViewTransYAnim.setDuration(350); sViewTransYAnim.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { super.onAnimationEnd(animation); pop_view.setVisibility(View.INVISIBLE); btn_show.setEnabled(!pop_view.isShown()); } }); AnimatorSet showAnim=new AnimatorSet(); showAnim.playTogether(fViewScaleXAnim,fViewRotationXAnim,fViewResumeAnim,fViewTransYAnim,fViewAlphaAnim,fViewScaleYAnim,sViewTransYAnim); showAnim.start(); } public boolean isShown(){ return pop_view.isShown(); } @Override public void onBackPressed() { // TODO Auto-generated method stub if(isShown()){ hide(); }else{ super.onBackPressed(); } } }
import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.content.Context; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.view.ViewTreeObserver.OnGlobalLayoutListener; import android.widget.Button; import android.widget.LinearLayout; public class EffectsActivity extends AppCompatActivity implements View.OnClickListener{ private Context context; private LinearLayout main_view; private LinearLayout pop_view; private int main_view_height; private int pop_view_height; private Button btn_show; private Button btn_hide; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_effects); context=this; main_view = (LinearLayout)findViewById(R.id.main_view); pop_view = (LinearLayout)findViewById(R.id.pop_view); btn_show = (Button)findViewById(R.id.btn_show); btn_hide = (Button)findViewById(R.id.btn_hide); btn_show.setOnClickListener(this); btn_hide.setOnClickListener(this); main_view.getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() { @Override public void onGlobalLayout() { main_view_height = main_view.getHeight(); main_view.getViewTreeObserver().removeGlobalOnLayoutListener(this); } }); pop_view.getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() { @Override public void onGlobalLayout() { pop_view_height = pop_view.getHeight(); pop_view.getViewTreeObserver().removeGlobalOnLayoutListener(this); } }); } @Override public void onClick(View v) { // TODO Auto-generated method stub switch (v.getId()) { case R.id.btn_show: show(); break; case R.id.btn_hide: hide(); break; default: break; } } private void show(){ ObjectAnimator fViewScaleXAnim=ObjectAnimator.ofFloat(main_view,"scaleX",1.0f,0.8f); fViewScaleXAnim.setDuration(350); ObjectAnimator fViewScaleYAnim=ObjectAnimator.ofFloat(main_view,"scaleY",1.0f,0.8f); fViewScaleYAnim.setDuration(350); ObjectAnimator fViewAlphaAnim=ObjectAnimator.ofFloat(main_view,"alpha",1.0f,0.5f); fViewAlphaAnim.setDuration(350); ObjectAnimator fViewRotationXAnim = ObjectAnimator.ofFloat(main_view, "rotationX", 0f, 10f); fViewRotationXAnim.setDuration(200); ObjectAnimator fViewResumeAnim = ObjectAnimator.ofFloat(main_view, "rotationX", 10f, 0f); fViewResumeAnim.setDuration(150); fViewResumeAnim.setStartDelay(200); ObjectAnimator fViewTransYAnim=ObjectAnimator.ofFloat(main_view,"translationY",0,-0.1f* main_view_height); fViewTransYAnim.setDuration(350); ObjectAnimator sViewTransYAnim=ObjectAnimator.ofFloat(pop_view,"translationY",pop_view_height,0); sViewTransYAnim.setDuration(350); sViewTransYAnim.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationStart(Animator animation) { super.onAnimationStart(animation); pop_view.setVisibility(View.VISIBLE); btn_show.setEnabled(!pop_view.isShown()); } }); AnimatorSet showAnim=new AnimatorSet(); showAnim.playTogether(fViewScaleXAnim,fViewRotationXAnim,fViewResumeAnim,fViewTransYAnim,fViewAlphaAnim,fViewScaleYAnim,sViewTransYAnim); showAnim.start(); } private void hide(){ ObjectAnimator fViewScaleXAnim=ObjectAnimator.ofFloat(main_view,"scaleX",0.8f,1.0f); fViewScaleXAnim.setDuration(350); ObjectAnimator fViewScaleYAnim=ObjectAnimator.ofFloat(main_view,"scaleY",0.8f,1.0f); fViewScaleYAnim.setDuration(350); ObjectAnimator fViewAlphaAnim=ObjectAnimator.ofFloat(main_view,"alpha",0.5f,1.0f); fViewAlphaAnim.setDuration(350); ObjectAnimator fViewRotationXAnim = ObjectAnimator.ofFloat(main_view, "rotationX", 0f, 10f); fViewRotationXAnim.setDuration(200); ObjectAnimator fViewResumeAnim = ObjectAnimator.ofFloat(main_view, "rotationX", 10f, 0f); fViewResumeAnim.setDuration(150); fViewResumeAnim.setStartDelay(200); ObjectAnimator fViewTransYAnim=ObjectAnimator.ofFloat(main_view,"translationY",-0.1f* main_view_height,0); fViewTransYAnim.setDuration(350); ObjectAnimator sViewTransYAnim=ObjectAnimator.ofFloat(pop_view,"translationY",0,pop_view_height); sViewTransYAnim.setDuration(350); sViewTransYAnim.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { super.onAnimationEnd(animation); pop_view.setVisibility(View.INVISIBLE); btn_show.setEnabled(!pop_view.isShown()); } }); AnimatorSet showAnim=new AnimatorSet(); showAnim.playTogether(fViewScaleXAnim,fViewRotationXAnim,fViewResumeAnim,fViewTransYAnim,fViewAlphaAnim,fViewScaleYAnim,sViewTransYAnim); showAnim.start(); } public boolean isShown(){ return pop_view.isShown(); } @Override public void onBackPressed() { // TODO Auto-generated method stub if(isShown()){ hide(); }else{ super.onBackPressed(); } } }
import android.content.Context; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; public class TabLayoutActivity extends AppCompatActivity implements View.OnClickListener { private Context context; private TabLayout tabLayout; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tablayout); context = this; Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); //使用了ActionBarDrawerToggle之后,下面的设置可以不用 // App Logo // toolbar.setLogo(R.drawable.ic_launcher); // Title toolbar.setTitle("TabLayout"); // Sub Title toolbar.setSubtitle("only a test"); //Navigation Icon // toolbar.setNavigationIcon(R.drawable.ic_launcher);//不设置,默认是返回箭头 setSupportActionBar(toolbar); //需要将setSupportActionBar(toolbar)放在setNavigationOnClickListener()之前设置才会响应click event toolbar.setNavigationOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub finish(); } }); getSupportActionBar().setDisplayHomeAsUpEnabled(true); tabLayout = (TabLayout) findViewById(R.id.tabLayout); tabLayout.addTab(tabLayout.newTab().setText("Tab 1")); tabLayout.addTab(tabLayout.newTab().setText("Tab 2")); tabLayout.addTab(tabLayout.newTab().setText("Tab 3")); tabLayout.addTab(tabLayout.newTab().setText("Tab 4")); } @Override public void onClick(View v) { // TODO Auto-generated method stub } }
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/coordinatorLayout" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" tools:context=".MainActivity" > <!-- AppBarLayout目前必须是第一个嵌套在CoordinatorLayout里面的子view --> <!-- AppBarLayout里面定义的view只要设置了app:layout_scrollFlags属性,就可以在RecyclerView滚动事件发生的时候被触发: --> <!-- app:layout_scrollFlags属性里面必须至少启用scroll这个flag,这样这个view才会滚动出屏幕,否则它将一直固定在顶部。 --> <!-- 可以使用的其他flag有: enterAlways: 一旦向上滚动这个view就可见。 enterAlwaysCollapsed: 顾名思义,这个flag定义的是何时进入(已经消失之后何时再次显示)。假设你定义了一个最小高度(minHeight)同时enterAlways也定义了,那么view将在到达这个最小高度的时候开始显示,并且从这个时候开始慢慢展开,当滚动到顶部的时候展开完。 exitUntilCollapsed: 同样顾名思义,这个flag时定义何时退出,当你定义了一个minHeight,这个view将在滚动到达这个最小高度的时候消失。 --> <!-- 记住,要把带有scroll flag的view放在前面,这样收回的view才能让正常退出,而固定的view继续留在顶部。 --> <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:fitsSystemWindows="true" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" > <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" app:layout_scrollFlags="scroll|enterAlways" app:popupTheme="@style/ThemeOverlay.AppCompat.Dark" app:titleTextAppearance="@style/TextAppearance.AppCompat.Headline" /> <!-- 如果想要 TabLayout从屏幕上消失,只需要给 TabLayout属性app:layout_scrollFlags="scroll|enterAlways" --> <!-- 如果你屏幕上显示只有少数 tab 的时候,可以设置tabMode="fixed",若很多需要拖动,则设置tabMode="scroll" --> <!-- 如果 tabMode 设置成 scrollable 的,则tabGravity属性将会被忽略 --> <android.support.design.widget.TabLayout android:id="@+id/tabLayout" android:layout_width="match_parent" android:layout_height="wrap_content" app:tabGravity="fill" app:tabMode="fixed" app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" /> </android.support.design.widget.AppBarLayout> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior" > <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="16dp" > <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Username" /> </android.support.design.widget.TextInputLayout> <android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="16dp" > <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Password" /> </android.support.design.widget.TextInputLayout> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="test" /> </LinearLayout> </android.support.v4.widget.NestedScrollView> </android.support.design.widget.CoordinatorLayout>
- Test.rar (4.4 MB)
- 描述: android5.1.1编译,需要v7-appcompat,design等扩展包
- 下载次数: 0
发表评论
-
TabLayout和ViewPager结合使用
2015-09-10 10:54 9686TabLayout是android design包内的控件; ... -
AppBarLayout.OnOffsetChangedListener的使用
2015-09-01 14:08 8906如果没听说过AppBarLayout.OnOffsetChan ... -
Design各控件的搭配使用3
2015-08-28 11:35 1839在上一个版本基础上新增: 对RecyclerView的操作(线 ... -
Design各控件的搭配使用2
2015-08-25 15:16 1943在上个版本的基础上增加个几个控件: DrawerLayout+ ... -
Design各控件的搭配使用
2015-08-25 13:48 2796PS:使用design包需要在design项目中导入appco ... -
ItemTouchHelper之SwipeDismiss
2015-08-25 10:11 1932引用This is a utility class to ad ... -
CoordinatorLayout之Behavior使用
2015-08-18 10:27 2241import android.animation.An ... -
support.v4之SlidingPaneLayout简单使用
2015-08-13 13:10 2418简单的布局 <android.support.v4. ... -
android5.0之CardView
2015-08-11 17:24 2024CardView继承至FrameLayout类,可以在一个卡片 ... -
ToolBar&DrawerLayout基本结构
2015-08-03 15:22 1981快速迭代用 使用到了 1:ToolBar + ShareAc ... -
android5.0之RecyclerView
2015-07-31 13:55 2487早就听说RecyclerView有多少多少XX 但是直到今天才 ... -
RecylerView相关文章
2015-04-10 12:03 2010RecylerView用于替代ListView,因为它比Lis ...
相关推荐
需要android5.1.1编译 博文链接:https://gundumw100.iteye.com/blog/2237850
android5.1.1编译,需要v7-appcompat,design等扩展包 博文链接:https://gundumw100.iteye.com/blog/2238641
android5.1.1编译 博文链接:https://gundumw100.iteye.com/blog/2237886
使用Material Design控件和动画 使用MVP架构整个项目,对应于model、ui、presenter三个包 使用Dagger2将M层注入P层,将P层注入V层,无需new,直接调用对象 使用Realm做阅读记录和收藏记录的增、删、查、改 使用Glide...
First Impression可单独使用或与Formula One配合使用,完 成图表的功能,是市面上常见图表控件中表现形式最为非富的一个. F1 6.0和FI 6.0和PowerBuilder类似,本身就有几个国家语言的版本,可以在其网站下载,但并没有...
First Impression可单独使用或与Formula One配合使用,完成图表的功能,是市面上常见图表控件中表现形式最为非富的一个. F1 6.0和FI 6.0和PowerBuilder类似,本身就有几个国家语言的版本,可以在其网站下载,但并没有...
比如在平常的项目中实现这样的效果,一般都是都会使用viewPageIndicate等几个开源框架直接实现,或者使用自定义的HorizontalScroll再配合ViewPage+Fragment实现。在谷歌推出marginDesign之后,实现这种效果可以直接...
使用Material Design控件和动画 使用MVP架构整个项目,对应于model、ui、presenter三个包 使用Dagger2将M层注入P层,将P层注入V层,无需new,直接调用对象 使用Realm做阅读记录和收藏记录的增、删、查、改 使用...
现在就可以安全的享用SkinEngine这道美餐了,合理的搭配好各个部件的使用,可以很轻松的编出来漂亮得不是一般的程序界面. <br>卸载过程:菜单project->options->packages->在design packages下选择要删除的-〉...
一种使用XKeys USB键盘远程控制Blackmagic Design ATEM切换器的方法。 它可以根据您的需要进行配置,并设计为可与同时访问XKey的其他应用程序(例如vMix)配合使用。 应该在支持的任何平台上运行(在macOS和...
material design 自带上下拉刷新控件以及配合RecyclerView实现列表
Android MVP模式漫画app源码项目基于RxJava Retrofit2 Glide ButterKnife,结合MVP模式开发,使用RxJava配合Retrofit做网络请求,整个项目使用MVP架构,对应model,view,presenter三个...使用Material Design控件和动画
Android MVP模式漫画app源码项目基于RxJava+Retrofit2+Glide+ButterKnife,结合MVP模式开发,使用RxJava配合Retrofit做网络请求,整个项目使用MVP架构,对应model,view,presenter三个...使用Material Design控件和动画
我们在应用viewpager的时候,经常会使用TabPageIndicator来与其配合。达到很漂亮的效果。但是TabPageIndicator是第三方的,而且比较老了,当然了现在很多大神都已经开始自己写TabPageIndicator来满足自己的需求,在...
MySQL 和 .Net2.0配合使用 与DotNet数据对象结合的自定义数据对象设计 (二) 数据集合与DataTable 与DotNet数据对象结合的自定义数据对象设计 (一) 数据对象与DataRow ASP.NET中大结果集的分页[翻译] .net 2.0 访问...
1.因为TabLayout是Android Design Support Library官方库的一个控件,所以使用TabLayout时候需要先添加对该库的依赖 compile ‘com.android.support:design:22.2.0’ 2.下面是TabLayout和ViewPager配合使用的布局...
TabLayout是design库提供的控件,可以方便的使用指示器,功能类似ViewPagerIndicator. 使用非常方便,Android Studio只需要在gradle中引入即可使用 . compile 'com.android.support:design:23.3.0' TabLayout即可以...
谷歌新出的Android Design Support Library带来了新的兼容的md风格控件,其中的coordinatorlayout配合appbarlayout再指定behavior可以实现滚动的效果,然而很遗憾,在应用到项目的时候,出现各种问题,然后自己实现...
自定义NavigationView搭配DrawerLayout的具体使用。 MVP的项目应用。 ToolBar,CardView,SwipereFreshLayout 等控件使用 Glide加载监听,获取缓存,圆角图片。 RecyclerView下拉刷新,上拉加载 。 面向Hoder编程...