Comments (11)
3.0.0
后, 支持RTL
.
注意:
Demo
中使用的是系统ViewPager
, 默认是不支持RTL
的.
可以参考以下库:
https://github.com/diego-gomez-olvera/RtlViewPager
from dsltablayout.
抱歉, 还没考虑到需要支持RTL
的情况!
你可以把UI设计
和需求
给我看下么?
目前你可以用动态addView
的形式达到效果.
from dsltablayout.
from dsltablayout.
上述布局 要变成
TAB1-3 TAB1-2 TAB1-1
TAB2-4 TAB2-3 TAB2-2 TAB2-1
然后其他代码不变, 只是单纯的RTL
布局方式? index
需要RTL
吗?
from dsltablayout.
我这边index可能不太用的到,因为比较紧急,我先使用RTL情况下切换数据源的方式来实现了。能支持index的话还是更好一些。
from dsltablayout.
@angcyo 能不能扩展布局从右到左方向如图。
布局不同index都是一样的,比如“更新”item index==0
from dsltablayout.
需求+1,应用需要支持阿拉伯语。基本可以理解为正常用户布局的镜像。就是对Rtl的支持。
from dsltablayout.
这个东西理论上不是通过改变数据源方式进行支持的。像原生控件,TextView,ViewGroup默认都是支持的,只要语言跳转为阿拉伯语,UI自动镜像。
from dsltablayout.
需求+1,应用需要支持阿拉伯语。基本可以理解为正常用户布局的镜像。就是对Rtl的支持。
如果布局支持RTL
, 那滚动方向是不是和LTR
反过来了?
比如: LTR
时, 滚动有效值是0~1000
, 但是RTL
时, 滚动有效值就是-1000~0
? 是这样的么?
from dsltablayout.
应该不是吧。你看一下LinearLayout的源码,他就是把索引currIndex=count-1,换句话说就是tab的tab第一个跑到了最后一个,反转过来。其他应该不动。android-29 LinearLayout line:1750。点击事件:最后一个index成了第一个。
from dsltablayout.
LinearLayout
不涉及滚动, 只具备布局的参考价值.
看了下HorizontalScrollView
的代码, 发现滚动也是反过来的.
from dsltablayout.
Related Issues (20)
- 怎么让文字不居中变大? HOT 4
- 我用代码add方式添加的item 怎么用代码方式设置高凸高度呢 HOT 1
- jenkins 打包无法下载依赖 HOT 1
- 动态修改某一项item HOT 4
- 不知道为啥,更新版本后一直拉不下来 HOT 1
- Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. HOT 4
- 远程引入viewpager绑定库后,TabLayout样式出现问题 HOT 1
- 支持tab双击事件 HOT 1
- 垂直方向动态添加子view后,indicator线不会显示出来。xml里面添加则无此问题 HOT 1
- 关于Item是否等宽 问题 HOT 1
- 中文问题 HOT 3
- 发现个问题。
- 代码 HOT 1
- 果断放弃 HOT 2
- 加油吧,老铁 HOT 1
- 怎么设置item的间距 HOT 1
- 请问怎么直接设置tab item垂直居中呢,我现在还得外面包一层,有点麻烦,能否框架提供这么个属性 HOT 1
- 如何修改某个Item的文本? HOT 1
- 请问能自定义TextView的Scale动画么 HOT 4
- demo写的读起来费死老劲了 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsltablayout.