我在Windows应用程序(不是WPF)中使用带有.NET 2.0的Janus控件。在我的应用程序的所有网格中,我想包装列标题的标题。我尝试了很多代码并且搜索了很长时间。但没有用过。有人会帮我把Janus的网格标题包起来吗? 像这样:
“这是一个很长的标题”
变为:
“这是
长标题“
PS:如您所知,控件名称为GridEx。
谢谢。 (沮丧的选民!请原谅我的简单问题和我可怜的英语)
答案 0 :(得分:1)
在buildscript {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
mavenLocal()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
allprojects {
repositories {
google()
}
}
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dexOptions {
javaMaxHeapSize "2g"
}
defaultConfig {
versionCode 15040300
versionName "4.3.0"
minSdkVersion 15
targetSdkVersion 26
multiDexEnabled true
}
// http://stackoverflow.com/a/21000452/1121497
packagingOptions {
pickFirst 'META-INF/*'
}
final Properties signingProps = new Properties()
final File signingFile = file("signing.properties")
if (!signingFile.exists()) {
throw new RuntimeException("You need your signing properties in a git-ignored file: " + signingFile.getAbsolutePath())
}
signingProps.load(new FileInputStream(file(signingFile)))
signingConfigs {
release {
storeFile file(signingProps['storeFile'])
storePassword signingProps['storePassword']
keyAlias signingProps['keyAlias']
keyPassword signingProps['keyPassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:mediarouter-v7:26.1.0'
compile 'com.android.support:recyclerview-v7:26.1.0'
compile 'com.android.support:design:26.1.0'
compile 'com.android.support:multidex:1.0.2'
compile 'com.google.android.gms:play-services-maps:11.4.2'
compile 'com.google.android.gms:play-services-analytics:11.4.2'
compile 'com.google.android.gms:play-services-gcm:11.4.2'
compile 'com.google.firebase:firebase-appindexing:11.4.2'
compile 'com.google.firebase:firebase-core:11.4.2'
compile 'commons-codec:commons-codec:1.9'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
compile 'com.github.chrisbanes.photoview:library:1.2.2'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'info.hoang8f:android-segmented:1.0.5'
compile 'com.facebook.android:facebook-android-sdk:4.27.0'
compile 'com.facebook.android:notifications:1.0.2'
compile 'io.card:android-sdk:5.4.2'
compile 'me.dm7.barcodescanner:zxing:1.9'
compile 'com.google.android.exoplayer:exoplayer:r2.2.0'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.okhttp:okhttp:2.2.0'
compile 'io.reactivex:rxandroid:1.1.0'
compile 'io.reactivex:rxjava:1.1.0'
compile fileTree(dir: '../libs', include: '*.jar')
compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
transitive = true;
}
}
apply plugin: 'com.google.gms.google-services'
属性中使用ColumnSet
并添加其中的所有列。
设置GridEx
(如果需要,可以根据标题大小增加)。
还设置ColumnSetHeaderLines = 2
根表属性:
GridEx